/**
 * Created by Administrator on 2017/1/11.
 */

import {NgModule} from "@angular/core";
import{RouterModule,Routes} from "@angular/router";
import {SecondComponent} from "./second.component";
import {SecondInfoComponent} from "./sinfo/second.component.info";
import {SecondGuessComponent} from "./sguess/second.component.guess";
import {SecondNewsComponent} from "./snews/second.component.news";
const SecondRouterConfig : Routes = [

  {
    path: 'second',
    redirectTo: '/second/news',
    pathMatch: 'full'
  },
	{path:"second",component:SecondComponent,
		children:[
		  {path : "info",component:SecondInfoComponent},
		  {path : "guess",component:SecondGuessComponent},
      {path : "news",component:SecondNewsComponent}
		]
	}
]

@NgModule({
  imports : [RouterModule.forChild(SecondRouterConfig)],
  exports : [RouterModule]
})
export class SecondRouter{}
